package com.example.tool.bean.wcaiexcel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GetSmartSheetRecordsRequest {
    private String docid;
    private String sheet_id;
    private String view_id;
    private List<String> record_ids;
    private String key_type;
    private List<String> field_titles;
    private List<String> field_ids;
    private List<Sort> sort;
    private Integer offset;
    private Integer limit;
    private Integer ver;
    private FilterSpec filter_spec;
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Sort {
        private String field_title;
        private Boolean desc;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class FilterSpec {
        private String conjunction;
        private List<Condition> conditions;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Condition {
        private String field_id;
        private String field_type;
        private String operator;
        private StringValue string_value;

    }
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StringValue {
        private List<String> value;
    }

}
